package com.usian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "emp")
public class Emp {
    @TableId(type = IdType.AUTO)
    private Integer eid;
    private String ename;
    private Integer sex;
    private String hobby;
    private String img;
    private Date birthday;
    private Integer did;
    private String addr;
    @TableField(value = "creatTime")
    private Date creatTime;

    public Emp(Integer eid,String ename){
        this.eid=eid;
        this.ename=ename;
    }
    public Emp(){

    }

}
